package cn.huixh.code.common;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;

public class BaseTest {
    protected long startTime;
    protected long endTime;

    @BeforeEach
    public void setUp() {
        startTime = System.currentTimeMillis();
    }

    @AfterEach
    public void tearDown() {
        endTime = System.currentTimeMillis();
        System.out.println("测试用时: " + (endTime - startTime) + "ms");
    }
} 